<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<%@include file="/WEB-INF/views/include/head.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleEdit" />
<title></title>
<link href="${staticPath}/lib/datetimepicker/0.0.11/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
	<link href="${staticPath}/lib/chosen/1.1.0/chosen.min.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="${staticPath}/lib/ztree/3.5/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript"
	src="${staticPath}/js/bpm/agent/process/start/startIndex.js"></script>
<!-- 选择对话框依赖的js -->
<script src="${staticPath}/lib/ztree/3.5/js/jquery.ztree.all-3.5.js" type="text/javascript"></script>
<script src="${staticPath}/js/jquery-dialog.js" type="text/javascript"></script>
<script type="text/javascript">
		var PATH="${contextPath}";
		var sapUrl = '${sapUrl}&flowStatus=${flowStatus}';
		var proInsId = '${proInsId}';
		var proDefId = '${proDefId}';
		var isSubmit = false;
		$(document).ready(function() { 
			$("#jbxxFrame").attr("src",sapUrl); 
			 
		});
		$(function(){
			var data = ${workflowdata};
			//是否启动流程
			if(data.bpm_flow_excute_type == "bpm_flow_start_"){
				initStartInfo(data);
			}
		});
	</script>
</head>
<body>
	<div class="Report_f">
           <div class="Report_f_1">
                <div class="Report_f_title_1">${subject}</div>
                  <ul class="nav nav-tabs Report_f_title_2" id="myTab">
					<li class="active"><a href="#baseInfo" data-toggle="tab">表单信息</a></li>
					<li><a href="#workflow" data-toggle="tab">流程信息</a></li>
					<li><a href="#diagram" data-toggle="tab">流程图</a></li>
				  </ul>
                  <!-- Tab panes -->
                  <div class="tab-content Report_f_title_3">
                    <div class="tab-pane active" id="baseInfo">
                         <div class="Report_f_title_4">
                              <iframe id="jbxxFrame" name="sapFormFrame" frameborder="no" width="100%" height="500px"></iframe>
							  <div class="alert alert-danger" role="alert">您目前所用的HR流程，由SAP所提供，如果有使用问题，请联系ERP hr小组黄继志协助解决。联系方式：075525890712</div>
                         </div>
                    </div>
                    <div class="tab-pane" id=workflow>
                         <div class="Report_f_title_4">
                              <c:import url="flowInfo.jsp" />
                         </div>
                    </div>
                    <div class="tab-pane" id="diagram">
                         <div class="Report_f_title_4">
                              <iframe id="diagram_iframe" src="${contextPath}/bpm/workflow/queryFlowImage?defId=${workflow.defId}&instanceId=${instanceId}"  frameborder=0 width="100%">
								</iframe>
                         </div>
                    </div>
				  </div>
                  <div class="f_12">
                       <button type="button" class="btn btn-danger btn_5 btn_right" onclick="history.go(-1)">返&nbsp;回</button>
                       <button id="flowSubmit" type="button" class="btn btn-success btn_5 btn_right" onclick="btn_click_start();">提&nbsp;交</button>
                  </div>
			</div>	
	</div>
</body>
</html>